package cn.edu.nsmc.modules.sys.dao;

import cn.edu.nsmc.common.utils.R;
import cn.edu.nsmc.modules.sys.entity.SysRepairmanValuationEntity;
import cn.edu.nsmc.modules.sys.form.RepairmanValuationList;
import cn.edu.nsmc.modules.sys.form.req.ReqRepairmanValuationForm;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @Author ZY
 * @Date 2024/2/29 16:40
 */
@Mapper
public interface SysRepairmanValuationDao extends BaseMapper<SysRepairmanValuationEntity> {

    @Update("update sys_repairman_valuation set repairman_id = #{repairmanId},valuator_id = #{valuatorId},content= #{content},time= #{time},star= #{star} where id= #{id}")
    int updateRepairmanValuation(SysRepairmanValuationEntity sysRepairmanValuationEntity);

    List<ReqRepairmanValuationForm> getRepairmanList(RepairmanValuationList repairmanValuationList);
    Integer getRepairmanListNumber(RepairmanValuationList repairmanValuationList);
}
